<!---SIDEBAR--->
<div id="sidebar">
	<!--search-->
	<div class="sidebar_content">
		<h2 onclick="$('#search').toggle();">Search</h2>
		<div id="search" class="sidebar_inner" style="display: block;">	
			<?php include('search.php'); ?>
			<div class="clear"></div>
		</div>
	</div>
	<!--/search-->
	<!--events-->
	<div id="ajaxcalendar" class="sidebar_content">
		<h2 onclick="$('#ajaxcalendarinner').toggle();">Events</h2>
		<div id="ajaxcalendarinner" align="center" class="sidebar_inner" style="display: block;"></div>
	</div>
	<!--/events-->	
	<!--social-->
	<div class="sidebar_content">
		<h2 onclick="$('#socialinner').toggle();">Social Connections</h2>
		<div id="socialinner" class="sidebar_inner" style="display: block;">	
			<?php include('social.php'); ?>
			<div class="clear"></div>
		</div>
	</div>
	<!--/social-->	
	<!---followers--->
		<div class="sidebar_content">
		<h2 onclick="$('#followerinner').toggle();">Followers</h2>
			<div id="followerinner" class="sidebar_inner" style="display: block;">
				<?php include('followers.php'); ?>
				<div class="clear"></div>
			</div>
		<div class="clear"></div>
		</div>
	<!---/followers--->
	<!---donate--->
	<div class="sidebar_content">
		<h2 onclick="$('#donateinner').toggle();">Donate</h2>
		<div id="donateinner" align="center" class="sidebar_inner" style="display: block;">	
				<?php
				if($site['paypal_email']==""){
					echo 'To enable PayPal online donation this site\'s owner must enter their Paypal email on the site profile page. To donate to this site, please <a href="'.$thisroot.'/contact.php">contact them</a> directly.';
				}else{ ?>
					<img src="<?php echo $o['images'].'paypal-donate.png'; ?>" onclick="document.paypalsite.item_name.value='<?php echo 'outword.org/'.$site['name'].': '.$posts['title']; ?>'; document.paypalsite.submit();" style="cursor: pointer;" />
				<?php } ?>
			<div class="clear"></div>
		</div>
	</div>
	<!---/donate--->
	<!--contact-->
	<!---
	<div class="sidebar_content">
		<h2 onclick="$('#contactinner').toggle();">Contact</h2>
		<div id="contactinner" class="sidebar_inner" style="display: none;">
		<?php if($site['phone'])echo trim(urldecode('<strong>Phone: </strong><span id="phone">'.$site['phone'].'</span>')); ?>
		<?php if($site['fax'])echo trim(urldecode('<br /><strong>Fax: </strong><span id="fax">'.$site['fax'].'</span>')); ?>
		<?php if($site['email'])echo trim(urldecode('<br /><strong>Email: </strong><span id="email"><a href="mailto:'.$site['email'].'" target="_blank">'.$site['email'].'</a></span>')); ?>
		<?php if($site['website'])echo trim(urldecode('<br /><strong>Web: </strong><span id="website"><a href="http://'.$site['website'].'" target="_blank">'.$site['website'].'</a></span>')); ?>
		<?php if($isadmin){ ?>
			<?php echo'<br />'; editLink('contact'); ?>
		<?php } ?>
		</div>
		<div class="clear"></div>
	</div>--->
	<!--/contact-->
	<!--address-->
	<!---
	<div class="sidebar_content">
		<h2 onclick="$('#addressinner').toggle();">Address</h2>
		<div id="addressinner" class="sidebar_inner" style="display: none;">
			<?php include('address.php'); ?>
		</div>
		<div class="clear"></div>
	</div>--->
	<!--/address-->
	
			<!---PARTNERS--->
			<!---
				<h2>Ministry Partners</h2>
				<div class="sidebar_content">
					<?php 
					$siteid = $site['id'];
					$partnerqry = dbSelect('sites_partners',array("site_id=$siteid")); 
					if(mysql_numrows($partnerqry) > 0){
					while($partnerrow = mysql_fetch_array($partnerqry)){
					$partnersiteid = $partnerrow['partner_id'];
					$partnersite = mysql_fetch_array(dbSelect('sites',array("id=$partnersiteid")));
					echo '<div style="float: left; cursor: pointer;" onclick=""><img width="40px" height="40px" src="'.$o['images'].'logos/'.$partnersite['logo'].'" alt="'.$partnersite['name'].'" /></div>';
					}
					}
					?>
					
					<a href="">Partner with us!</a>
					</div>
				--->
			<!---PARTNERS--->

</div>
<!---SIDEBAR--->